<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home Page</title>
</head>
<body>
	<h1>Home Page</h1>
	<p style="float: right;">${user.name }</p>
	<table border="2">
		<tr>
		<c:forEach items="${books }" var="b">
			<td>
				<img src="/Homework_W4wed/${b.path }" width="80" height="120">
			</td>
		</c:forEach>
		</tr>
		<tr>
		<c:forEach items="${books }" var="b">
			<td>
			<a href="sec/addToCart?id=${b.id }">加入购物车</a>
			</td>
		</c:forEach>
		</tr>
	</table>
	<br/><br/>
	<a href="sec/cart">查看购物车</a>
</body>
</html>